<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/tcpSvr.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">tcpSvr.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &lt;thread&gt;</code><br />
<code>#include &lt;chrono&gt;</code><br />
<code>#include &lt;regex&gt;</code><br />
<code>#include &quot;<a class="el" href="../../df/ddf/tcp_svr_8hpp_source.html">tcpSvr.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../dd/d42/connection_8hpp_source.html">connection.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d5/d3a/url_8hpp_source.html">url.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
tcpSvr.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d3a/tcp_svr_8cpp__incl.png" border="0" usemap="#asrc_2tcp_svr_8cpp" alt=""/></div>
<map name="asrc_2tcp_svr_8cpp" id="asrc_2tcp_svr_8cpp">
<area shape="rect" title=" " alt="" coords="268,5,374,32"/>
<area shape="rect" title=" " alt="" coords="1082,379,1154,405"/>
<area shape="poly" title=" " alt="" coords="375,20,590,35,875,64,1010,83,1123,107,1167,120,1201,134,1223,149,1231,166,1231,244,1229,264,1223,283,1203,318,1177,348,1151,371,1147,367,1173,344,1199,315,1218,281,1224,263,1226,244,1226,167,1219,153,1199,138,1166,125,1122,112,1009,89,874,69,590,41,374,26"/>
<area shape="rect" title=" " alt="" coords="106,80,175,107"/>
<area shape="poly" title=" " alt="" coords="290,35,187,76,185,71,288,30"/>
<area shape="rect" title=" " alt="" coords="5,229,63,256"/>
<area shape="poly" title=" " alt="" coords="267,23,226,28,180,38,135,55,96,82,72,112,55,148,45,183,39,214,34,213,40,182,50,146,67,109,92,78,133,51,179,33,225,23,267,18"/>
<area shape="rect" title=" " alt="" coords="250,80,311,107"/>
<area shape="poly" title=" " alt="" coords="316,34,297,68,293,65,311,31"/>
<area shape="rect" title=" " alt="" coords="335,80,389,107"/>
<area shape="poly" title=" " alt="" coords="330,31,350,65,345,68,326,34"/>
<area shape="rect" href="../../df/ddf/tcp_svr_8hpp.html" title=" " alt="" coords="384,155,468,181"/>
<area shape="poly" title=" " alt="" coords="347,30,376,50,403,78,418,109,425,139,420,140,413,111,398,82,372,55,344,35"/>
<area shape="rect" href="../../dd/d42/connection_8hpp.html" title=" " alt="" coords="138,229,247,256"/>
<area shape="poly" title=" " alt="" coords="297,35,267,54,240,82,222,115,210,150,197,214,192,213,205,149,217,112,236,78,263,50,294,30"/>
<area shape="rect" href="../../d5/d3a/url_8hpp.html" title=" " alt="" coords="738,80,799,107"/>
<area shape="poly" title=" " alt="" coords="375,26,724,82,723,87,374,31"/>
<area shape="poly" title=" " alt="" coords="384,178,249,200,83,232,78,233,77,228,81,227,248,195,383,173"/>
<area shape="rect" title=" " alt="" coords="619,304,673,331"/>
<area shape="poly" title=" " alt="" coords="469,172,574,192,623,207,641,217,653,228,661,242,663,259,659,290,653,289,658,259,656,244,649,231,638,221,621,212,573,197,468,177"/>
<area shape="rect" title=" " alt="" coords="714,229,760,256"/>
<area shape="poly" title=" " alt="" coords="469,175,696,227,699,228,698,233,695,232,468,181"/>
<area shape="rect" title=" " alt="" coords="201,379,270,405"/>
<area shape="poly" title=" " alt="" coords="384,174,316,180,239,190,170,207,145,218,128,231,119,248,118,267,124,285,135,304,169,339,205,368,202,372,165,343,131,307,119,288,113,267,114,247,124,228,142,214,168,202,238,185,316,174,383,169"/>
<area shape="rect" title=" " alt="" coords="609,453,686,480"/>
<area shape="poly" title=" " alt="" coords="446,180,473,201,501,228,531,268,569,326,635,438,630,441,564,329,527,271,497,231,470,205,443,184"/>
<area shape="rect" title=" " alt="" coords="272,229,329,256"/>
<area shape="poly" title=" " alt="" coords="405,184,337,224,334,219,403,180"/>
<area shape="rect" title=" " alt="" coords="189,304,234,331"/>
<area shape="poly" title=" " alt="" coords="418,184,387,220,344,258,303,280,249,303,247,298,300,275,340,254,383,216,414,180"/>
<area shape="rect" href="../../dc/d4b/uvlper_8hpp.html" title=" " alt="" coords="405,229,487,256"/>
<area shape="poly" title=" " alt="" coords="432,181,441,214,436,215,427,183"/>
<area shape="poly" title=" " alt="" coords="386,184,249,227,247,222,385,179"/>
<area shape="rect" href="../../dd/d5a/dcitfc_8hpp.html" title=" " alt="" coords="562,229,640,256"/>
<area shape="poly" title=" " alt="" coords="457,179,557,220,555,225,455,184"/>
<area shape="poly" title=" " alt="" coords="406,258,250,306,248,301,404,253"/>
<area shape="rect" title=" " alt="" coords="258,304,319,331"/>
<area shape="poly" title=" " alt="" coords="420,259,331,299,329,295,417,254"/>
<area shape="rect" href="../../de/d6d/singleton_8hpp.html" title=" " alt="" coords="342,304,494,331"/>
<area shape="poly" title=" " alt="" coords="444,258,431,290,426,289,439,256"/>
<area shape="poly" title=" " alt="" coords="387,334,283,375,281,370,385,329"/>
<area shape="rect" title=" " alt="" coords="394,379,476,405"/>
<area shape="poly" title=" " alt="" coords="424,331,431,363,426,364,418,332"/>
<area shape="poly" title=" " alt="" coords="248,251,260,253,604,307,604,312,259,259,247,257"/>
<area shape="poly" title=" " alt="" coords="189,257,177,291,175,311,179,330,191,350,208,367,204,371,187,353,174,332,170,311,172,290,184,255"/>
<area shape="poly" title=" " alt="" coords="188,258,178,279,170,305,165,335,164,360,172,382,190,403,220,420,262,434,315,444,373,452,493,460,593,463,593,468,492,466,372,457,314,449,261,439,218,425,187,407,167,385,159,361,159,334,165,303,173,277,183,255"/>
<area shape="poly" title=" " alt="" coords="198,256,207,288,202,289,193,257"/>
<area shape="poly" title=" " alt="" coords="211,254,261,292,258,297,208,259"/>
<area shape="poly" title=" " alt="" coords="611,255,632,289,628,292,606,258"/>
<area shape="poly" title=" " alt="" coords="603,256,610,330,619,368,631,405,641,438,636,439,626,406,614,369,605,331,598,257"/>
<area shape="poly" title=" " alt="" coords="776,107,784,135,790,174,788,217,783,238,773,258,760,270,739,282,688,304,686,299,737,278,757,266,769,254,778,236,783,216,784,175,778,136,771,108"/>
<area shape="poly" title=" " alt="" coords="769,108,745,215,740,214,763,107"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="942,155,1016,181"/>
<area shape="poly" title=" " alt="" coords="800,103,929,147,927,152,798,108"/>
<area shape="poly" title=" " alt="" coords="1006,180,1037,200,1065,228,1086,261,1100,298,1117,362,1111,364,1095,300,1081,264,1061,231,1034,204,1003,184"/>
<area shape="poly" title=" " alt="" coords="959,184,896,219,816,258,749,285,688,306,686,301,747,280,814,254,894,215,957,180"/>
<area shape="poly" title=" " alt="" coords="987,181,1005,233,1022,304,1024,337,1017,364,1001,386,975,408,954,418,925,428,852,444,702,463,701,458,851,439,924,423,952,414,973,403,997,383,1012,361,1018,336,1017,304,1000,235,982,183"/>
<area shape="rect" title=" " alt="" coords="1133,229,1191,256"/>
<area shape="poly" title=" " alt="" coords="1012,179,1120,222,1118,227,1010,184"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="885,229,943,256"/>
<area shape="poly" title=" " alt="" coords="970,184,937,220,933,216,966,180"/>
<area shape="poly" title=" " alt="" coords="886,254,688,307,687,302,884,249"/>
<area shape="poly" title=" " alt="" coords="885,254,804,279,764,293,737,306,700,338,675,380,663,410,655,439,650,437,658,408,670,377,696,334,734,302,762,288,802,274,884,249"/>
<area shape="rect" title=" " alt="" coords="840,304,919,331"/>
<area shape="poly" title=" " alt="" coords="910,258,894,291,889,289,906,255"/>
<area shape="rect" title=" " alt="" coords="943,304,1008,331"/>
<area shape="poly" title=" " alt="" coords="927,255,957,290,953,294,923,258"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="748,304,816,331"/>
<area shape="poly" title=" " alt="" coords="892,259,819,299,817,294,890,254"/>
<area shape="poly" title=" " alt="" coords="817,325,828,328,1068,378,1067,384,827,333,816,331"/>
<area shape="poly" title=" " alt="" coords="748,326,286,387,285,381,747,321"/>
<area shape="poly" title=" " alt="" coords="818,326,900,352,936,366,955,377,961,392,955,407,938,421,912,432,846,449,770,460,702,465,701,460,769,454,844,444,910,427,935,416,951,404,955,392,951,380,934,370,899,357,816,331"/>
<area shape="poly" title=" " alt="" coords="748,328,492,382,491,376,747,323"/>
<area shape="rect" title=" " alt="" coords="872,379,940,405"/>
<area shape="poly" title=" " alt="" coords="805,329,873,368,870,373,802,334"/>
<area shape="rect" title=" " alt="" coords="809,379,848,405"/>
<area shape="poly" title=" " alt="" coords="792,330,815,364,810,367,788,333"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="685,379,786,405"/>
<area shape="poly" title=" " alt="" coords="776,333,754,367,749,364,772,330"/>
<area shape="poly" title=" " alt="" coords="722,408,676,445,672,441,718,404"/>
</map>
</div>
</div>
<p><a href="../../dc/d4c/tcp_svr_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aad3cf4543921afb4bc5d2068be6b8c85" id="r_aad3cf4543921afb4bc5d2068be6b8c85"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aad3cf4543921afb4bc5d2068be6b8c85">uv_new_connection</a> (uv_stream_t *server, int status)</td></tr>
<tr class="separator:aad3cf4543921afb4bc5d2068be6b8c85"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="aad3cf4543921afb4bc5d2068be6b8c85" name="aad3cf4543921afb4bc5d2068be6b8c85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad3cf4543921afb4bc5d2068be6b8c85">&#9670;&#160;</a></span>uv_new_connection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void uv_new_connection </td>
          <td>(</td>
          <td class="paramtype">uv_stream_t *</td>          <td class="paramname"><span class="paramname"><em>server</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>status</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../dc/d4c/tcp_svr_8cpp_source.html">tcpSvr.cpp</a> 第 <a class="el" href="../../dc/d4c/tcp_svr_8cpp_source.html#l00011">11</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_cgraph.png" border="0" usemap="#adc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_cgraph" alt=""/></div>
<map name="adc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_cgraph" id="adc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_cgraph">
<area shape="rect" title=" " alt="" coords="5,123,142,149"/>
<area shape="rect" href="../../d2/d50/classtcp_svr.html#ab02384e56ed993d541cd8515677b59ac" title=" " alt="" coords="190,123,375,149"/>
<area shape="poly" title=" " alt="" coords="142,133,174,133,174,139,142,139"/>
<area shape="rect" href="../../d5/dca/classtcp_connect.html#aacaae6d523ad0440eb5d30c8ff07b3e8" title="读取错误消息" alt="" coords="450,5,586,32"/>
<area shape="poly" title=" " alt="" coords="299,120,352,81,422,42,439,35,441,40,424,46,355,86,302,124"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html#ab064e1d47abf923e4ae0deaac875c173" title=" " alt="" coords="444,56,592,99"/>
<area shape="poly" title=" " alt="" coords="338,120,428,97,430,102,340,125"/>
<area shape="rect" href="../../d5/dca/classtcp_connect.html#ac906dea41da72e91452818a0bd8383aa" title=" " alt="" coords="423,123,613,149"/>
<area shape="poly" title=" " alt="" coords="375,133,407,133,407,139,375,139"/>
<area shape="rect" href="../../d5/dca/classtcp_connect.html#a07bd0d4dc7717401320314fa817996c2" title=" " alt="" coords="449,173,587,200"/>
<area shape="poly" title=" " alt="" coords="349,147,438,167,437,172,347,153"/>
<area shape="rect" href="../../d5/dca/classtcp_connect.html#a773c8544725f30fdc63afaf934f6aefd" title="设置事件回调函数" alt="" coords="448,224,589,251"/>
<area shape="poly" title=" " alt="" coords="306,147,359,178,424,210,443,217,442,222,422,214,356,183,304,152"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_icgraph.png" border="0" usemap="#adc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_icgraph" alt=""/></div>
<map name="adc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_icgraph" id="adc/d4c/tcp_svr_8cpp_aad3cf4543921afb4bc5d2068be6b8c85_icgraph">
<area shape="rect" title=" " alt="" coords="167,5,303,32"/>
<area shape="rect" href="../../d2/d50/classtcp_svr.html#a0f76b1e77ef99c4b0d8aa35e4bec2aba" title=" " alt="" coords="5,5,119,32"/>
<area shape="poly" title=" " alt="" coords="151,21,119,21,119,16,151,16"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
